package vip

import (
	"context"
	"net/http"

	"2106A-zg6/baidu/gateway/internal/svc"
	"2106A-zg6/baidu/gateway/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type UserVipLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewUserVipLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserVipLogic {
	return &UserVipLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *UserVipLogic) UserVip(req *types.Vip) (resp *types.Response, err error) {

	//api 前端的 轮播图 可以直接在 api 里面写 服务
	return &types.Response{
		Msg:  "成为VIP",
		Code: http.StatusOK,
		Data: map[string]interface{}{
			"一号套餐": "连续包月15/Vip",
			"二号套餐": "连续包月20/SVip",
			"三号套餐": "3个月，50/Vip",
			"四号套餐": "3个月，65/SVip",
			"五号套餐": "年Vip，128/SVip",
			"六号套餐": "年SVip，288/SVip",
		},
	}, nil
}
